package com.andy.nature.ui.fragment

import android.content.Intent
import com.andy.common.base.BaseVMFragment
import com.andy.nature.databinding.FragmentMoneyBinding
import com.andy.nature.ui.activity.LoginActivity
import com.andy.nature.vm.MoneyViewModel

/**
 * Author:Andy
 * Date:2023/3/21 14:17
 * Description:SettingsFragment
 */
class MoneyFragment : BaseVMFragment<FragmentMoneyBinding, MoneyViewModel>() {
    override fun viewModelClass(): Class<MoneyViewModel> {
        return MoneyViewModel::class.java
    }

    override fun initObserve() {
    }

    override fun initData() {
    }

    override fun initAction() {
        mBinding?.apply {
            tvShare.setOnClickListener {
                startActivity(Intent(requireActivity(), LoginActivity::class.java))
            }
        }
    }

    override fun getViewBinding(): FragmentMoneyBinding {
        return FragmentMoneyBinding.inflate(layoutInflater)
    }
}